package live

import (
	"github.com/gin-gonic/gin"
	"vrcm/src/vrcm/app/admin/apis/live"
	"vrcm/src/vrcm/app/admin/router"
)

func init() {
	router.NoCheckRole = append(router.NoCheckRole, registerRecordListViewRouter)
}

// registerRecordListViewRouter
func registerRecordListViewRouter(v1 *gin.RouterGroup) {
	api := apis.RecordListView{}
	r := v1.Group("/record-list-view")
	{
		r.POST("/record-list", api.GetPage)
		r.POST("/record-list-page", api.GetPageRecordList)
		r.POST("/need-record-list-page", api.GetPageNeedRecordList)
		r.POST("/record-list-by-time", api.GetPageByTime)
		r.GET("/:id", api.Get)
		r.POST("insert", api.Insert)
		r.POST("/update", api.Update)
		r.POST("/delete", api.Delete)
		r.POST("/delete-record", api.DeleteRecord)
		r.POST("/sync-record", api.SyncRecord)
		r.POST("/get-need-to-add-records", api.GetNeedToAddRecords)
		r.POST("/update-sort", api.RecordUpOrDown)
	}
}
